#define _CRT_SECURE_NO_WARNINGS 1
#include "SList.h"


void Test1()
{
	SListNode* plist = NULL;
	SListPushBack(&plist, 5);
	SListPushBack(&plist, 4);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 6);
	SListPushBack(&plist, 7);
	SListPrint(plist);
}

void Test2()
{

	SListNode* plist = NULL;
	SListPushBack(&plist, 4);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 2);
	/*SListPopFront(&plist);*/
	SListPrint(plist);
	SListNode* pos = SListFind(plist, 3);
	SLTErase(&plist, &pos);
	SListPrint(plist);
	
}
void Test3()
{
	SListNode* plist = NULL; 
	SListPushBack(&plist, 4);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 2);
	SListPrint(plist);
	SListNode* pos = SListFind(plist, 2);
	SLTInsert(&plist, pos,2);
	SListPrint(plist);
}

int main()
{
	SListNode s;
	Test2();
	return 0;
}